package com.zhuiYun.project.api.order.controller;


import com.zhuiYun.project.annotation.OptLog;
import com.zhuiYun.project.api.order.model.diyorderModel;
import com.zhuiYun.project.api.order.service.diyorderService;
import com.zhuiYun.project.api.order.service.orderService;
import com.zhuiYun.project.common.response.CommonConstants;
import com.zhuiYun.project.common.response.CommonResult;
import com.zhuiYun.project.util.pageUtil.PageRequest;
import com.zhuiYun.project.util.pageUtil.PageResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@Api(tags = "订单管理")
@RequestMapping("/diyorderl")
public class diyorderController {
    @Autowired
    diyorderService diyorderService;

     @GetMapping("diyorderllist")
     @ApiOperation(value = " diy订单管理的查询方法")
     @OptLog(modular = "diy订单管理", type = CommonConstants.ADD, describe = "查询订单")
     CommonResult orderList(diyorderModel diyorderMode){
        CommonResult commonResult =diyorderService.diyorderList(diyorderMode);
        return commonResult;
    }



}
